home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
Sounds.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
9KB
|
297 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
f.h extends f[§§constant(6)];
var _loc2_ = f.h = function()
{
super();
_global[§§constant(4)] = this;
this[§§constant(5)]();
}[§§constant(7)];
_loc2_[§§constant(5)] = function()
{
this[§§constant(8)]();
this[§§constant(9)] = _global[§§constant(10)][§§constant(12)](§§constant(9),_global[§§constant(10)][§§constant(11)]());
this[§§constant(13)] = this[§§constant(15)](§§constant(14),true);
this[§§constant(16)] = this[§§constant(15)](§§constant(17),true);
};
_loc2_[§§constant(18)] = function()
{
this[§§constant(19)] = this[§§constant(21)](§§constant(20));
};
_loc2_[§§constant(22)] = function()
{
if(this[§§constant(23)](this[§§constant(19)]))
{
this[§§constant(24)](this[§§constant(19)],0,2);
}
if(this[§§constant(23)](this[§§constant(13)]))
{
this[§§constant(24)](this[§§constant(13)],0,2);
}
};
_loc2_[§§constant(23)] = function(uid)
{
var _loc2_ = this[uid];
if(_loc2_ == undefined || !_loc2_[§§constant(25)])
{
return false;
}
return true;
};
_loc2_[§§constant(21)] = function(linkId, vol)
{
if(!linkId)
{
return undefined;
}
if(vol == undefined)
{
vol = 100;
}
var _loc2_ = f[§§constant(26)][§§constant(27)][§§constant(28)]();
var _loc3_ = this[§§constant(9)][§§constant(12)](_loc2_,this[§§constant(9)][§§constant(11)]());
_loc3_[§§constant(29)] = _loc2_;
this[_loc2_] = new §\§\§constant(30)§(_loc3_);
this[_loc2_][§§constant(31)](linkId);
this[_loc2_][§§constant(32)](vol);
this[_loc2_][§§constant(33)]();
this[_loc2_][§§constant(25)] = true;
this[_loc2_][§§constant(34)] = f[§§constant(26)][§§constant(36)][§§constant(37)](this,this[§§constant(35)],_loc2_);
return _loc2_;
};
_loc2_[§§constant(38)] = function(uid)
{
this[uid][§§constant(39)]();
delete this[uid];
this[uid] = undefined;
this[§§constant(9)][uid][§§constant(40)]();
};
_loc2_[§§constant(35)] = function(uid)
{
if(uid == this[§§constant(19)])
{
this[§§constant(41)](this[§§constant(13)],50);
}
this[§§constant(43)][§§constant(44)]({§\§\§constant(42)§:§§constant(35),§\§\§constant(29)§:uid});
this[§§constant(38)](uid);
};
_loc2_[§§constant(45)] = function(uid)
{
if(!uid)
{
return undefined;
}
this[uid][§§constant(39)]();
};
_loc2_[§§constant(24)] = function(uid, tarVol, fadeSpeed)
{
if(fadeSpeed == undefined)
{
fadeSpeed = 1;
}
var _loc2_ = this[§§constant(9)][uid];
_loc2_[§§constant(46)] = true;
_loc2_[§§constant(47)] = fadeSpeed;
_loc2_[§§constant(48)] = tarVol;
var _loc3_ = this[uid];
if(!_loc3_[§§constant(25)])
{
if(tarVol == 0)
{
return undefined;
}
if(_loc3_[§§constant(49)] || _loc3_[§§constant(50)])
{
this[§§constant(41)](uid,0);
}
}
if(_loc2_[§§constant(51)] == undefined)
{
_loc2_[§§constant(51)] = f[§§constant(26)][§§constant(36)][§§constant(37)](this,this[§§constant(52)],uid);
}
};
_loc2_[§§constant(52)] = function(uid)
{
var _loc2_ = this[§§constant(9)][uid];
var _loc5_ = this[uid];
var _loc4_ = _loc5_[§§constant(53)]();
if(_loc2_[§§constant(46)])
{
var _loc7_ = _loc4_ <= _loc2_[§§constant(48)] ? _loc2_[§§constant(47)] : - _loc2_[§§constant(47)];
var _loc3_ = _loc4_ + _loc7_;
if(eval(§§constant(54))[§§constant(55)](_loc3_ - _loc2_[§§constant(48)]) < _loc2_[§§constant(47)])
{
_loc3_ = _loc2_[§§constant(48)];
}
_loc5_[§§constant(32)](_loc3_);
if(_loc3_ == _loc2_[§§constant(48)])
{
_loc2_[§§constant(46)] = false;
if(uid == this[§§constant(19)])
{
this[§§constant(38)](uid);
}
}
}
if(!_loc2_[§§constant(46)])
{
delete _loc2_[§§constant(51)];
}
};
_loc2_[§§constant(32)] = function(uid, vol)
{
};
_loc2_[§§constant(15)] = function(soundId, isAmbience)
{
var _loc2_ = f[§§constant(26)][§§constant(27)][§§constant(28)]();
var _loc3_ = this[§§constant(9)][§§constant(12)](_loc2_,this[§§constant(9)][§§constant(11)]());
this[_loc2_] = new §\§\§constant(30)§(_loc3_);
this[_loc2_][§§constant(56)] = soundId;
this[_loc2_][§§constant(29)] = _loc2_;
if(isAmbience)
{
this[_loc2_][§§constant(50)] = true;
}
else
{
this[_loc2_][§§constant(49)] = true;
}
this[_loc2_][§§constant(25)] = false;
this[_loc2_][§§constant(31)](soundId);
this[_loc2_][§§constant(32)](0);
return _loc2_;
};
_loc2_[§§constant(41)] = function(uid, vol)
{
this[uid][§§constant(39)]();
if(vol == undefined)
{
vol = 100;
}
this[uid][§§constant(32)](vol);
this[uid][§§constant(33)](0,100000);
this[uid][§§constant(25)] = true;
};
_loc2_[§§constant(57)] = function(uid)
{
this[uid][§§constant(39)]();
};
_loc2_[§§constant(58)] = function()
{
for(var _loc3_ in this)
{
var _loc2_ = this[_loc3_];
if(_loc2_ instanceof eval(§§constant(30)))
{
this[_loc3_][§§constant(39)]();
}
}
};
_loc2_[§§constant(59)] = function()
{
for(var _loc3_ in this)
{
var _loc2_ = this[_loc3_];
if(_loc2_ instanceof eval(§§constant(30)))
{
if(_loc2_[§§constant(49)])
{
this[§§constant(24)](_loc2_[§§constant(29)],0,10);
}
}
}
};
_loc2_[§§constant(8)] = function()
{
this[§§constant(9)][§§constant(40)]();
for(var _loc2_ in this)
{
if(this[_loc2_] instanceof eval(§§constant(30)))
{
delete this[_loc2_];
}
}
for(_loc2_ in this)
{
if(this[_loc2_] instanceof g)
{
delete this[_loc2_];
}
}
};
_loc2_[§§constant(60)] = function(mc)
{
this[mc[§§constant(61)]][§§constant(39)]();
delete this[mc[§§constant(61)]];
mc[§§constant(40)]();
};
_loc2_[§§constant(62)] = function()
{
if(_global[§§constant(63)][§§constant(64)] == 0)
{
return undefined;
}
var _loc4_ = _global[§§constant(65)][§§constant(66)]();
var _loc5_ = _global[§§constant(67)][§§constant(68)]();
var _loc3_ = _loc4_;
if(_loc3_ > 2)
{
this[§§constant(24)](this[§§constant(13)],0,1);
this[§§constant(24)](this[§§constant(16)],60,1);
}
else if(_loc3_ > 1)
{
this[§§constant(24)](this[§§constant(13)],0,1);
this[§§constant(24)](this[§§constant(16)],40,1);
}
else if(_loc3_ > 0)
{
this[§§constant(24)](this[§§constant(13)],0,1);
this[§§constant(24)](this[§§constant(16)],20,1);
}
else
{
this[§§constant(24)](this[§§constant(13)],50,1);
this[§§constant(24)](this[§§constant(16)],0,1);
}
};
_loc2_[§§constant(69)] = function()
{
this[§§constant(59)]();
if(this[this[§§constant(13)]][§§constant(53)]() > 10)
{
this[§§constant(24)](this[§§constant(13)],10,2);
}
if(this[this[§§constant(16)]][§§constant(53)]() > 10)
{
this[§§constant(24)](this[§§constant(16)],10,2);
}
};
§§push(§§constant(70)(f.h[§§constant(7)],null,1));
}
§§pop();